package com.lenovo.smarttraffic.zm;

import java.io.Serializable;
import java.util.List;

public class CarParkInfo implements Serializable {

    /**
     * ERRMSG : 成功
     * RESULT : S
     * latitude : 39.941853
     * longitude : 116.385307
     * location : 什刹海
     * ROWS_DETAIL : [{"name":"丽豪园小区停车场","address":"北京市西城区大石桥胡同 55 号后门丽豪园小区\r\n","allspace":68,"emptyspace":32,"open":1,"remarks":"停车场收费标准由全市停车系统统一定价，最高 44 元/天。","coordinate":"116.388144,39.947112"}]
     */

    private String ERRMSG;
    private String RESULT;
    private String latitude;
    private String longitude;
    private String location;
    private List<ROWSDETAILBean> ROWS_DETAIL;

    public String getERRMSG() {
        return ERRMSG;
    }

    public void setERRMSG(String ERRMSG) {
        this.ERRMSG = ERRMSG;
    }

    public String getRESULT() {
        return RESULT;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public List<ROWSDETAILBean> getROWS_DETAIL() {
        return ROWS_DETAIL;
    }

    public void setROWS_DETAIL(List<ROWSDETAILBean> ROWS_DETAIL) {
        this.ROWS_DETAIL = ROWS_DETAIL;
    }


    public static class ROWSDETAILBean implements Serializable {
        public ROWSDETAILBean(String name, String address, int AllSpace, int EmptySpace, int open, String remarks, String coordinate) {
            this.name = name;
            this.address = address;
            this.AllSpace = AllSpace;
            this.EmptySpace = EmptySpace;
            this.open = open;
            this.remarks = remarks;
            this.coordinate = coordinate;
        }


        /**
         * name : 丽豪园小区停车场
         * address : 北京市西城区大石桥胡同 55 号后门丽豪园小区
         * allspace : 68
         * emptyspace : 32
         * open : 1
         * remarks : 停车场收费标准由全市停车系统统一定价，最高 44 元/天。
         * coordinate : 116.388144,39.947112
         */

        private String name;
        private String address;
        private int AllSpace;
        private int EmptySpace;
        private int open;
        private String remarks;
        private String coordinate;
        //自己加的距离
        private float distance;

        public int getAllSpace() {
            return AllSpace;
        }

        public void setAllSpace(int allSpace) {
            AllSpace = allSpace;
        }

        public int getEmptySpace() {
            return EmptySpace;
        }

        public void setEmptySpace(int emptySpace) {
            EmptySpace = emptySpace;
        }

        public void setDistance(float distance) {
            this.distance = distance;
        }

        public float getDistance() {
            return distance;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public int getAllspace() {
            return AllSpace;
        }

        public void setAllspace(int AllSpace) {
            this.AllSpace = AllSpace;
        }

        public int getEmptyspace() {
            return EmptySpace;
        }

        public void setEmptyspace(int EmptySpace) {
            this.EmptySpace = EmptySpace;
        }

        public int getOpen() {
            return open;
        }

        public void setOpen(int open) {
            this.open = open;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public String getCoordinate() {
            return coordinate;
        }

        public void setCoordinate(String coordinate) {
            this.coordinate = coordinate;
        }

        @Override
        public String toString() {
            return "ROWSDETAILBean{" +
                    "name='" + name + '\'' +
                    ", address='" + address + '\'' +
                    ", AllSpace=" + AllSpace +
                    ", EmptySpace=" + EmptySpace +
                    ", open=" + open +
                    ", remarks='" + remarks + '\'' +
                    ", coordinate='" + coordinate + '\'' +
                    '}';
        }

    }
}
